/*     */ package irdc.ex03_15;
/*     */ 
/*     */ import android.content.Context;
/*     */ import android.content.res.Resources;
/*     */ import android.content.res.XmlResourceParser;
/*     */ import android.graphics.drawable.Drawable;
/*     */ import android.inputmethodservice.Keyboard;
/*     */ import android.inputmethodservice.Keyboard.Key;
/*     */ import android.inputmethodservice.Keyboard.Row;
/*     */ 
/*     */ public class LatinKeyboard extends Keyboard
/*     */ {
/*     */   private Keyboard.Key A;
/*     */   private Keyboard.Key B;
/*     */ 
/*     */   public LatinKeyboard(Context context, int xmlLayoutResId)
/*     */   {
/*  32 */     super(context, xmlLayoutResId);
/*     */   }
/*     */ 
/*     */   public LatinKeyboard(Context context, int layoutTemplateResId, CharSequence characters, int columns, int horizontalPadding)
/*     */   {
/*  37 */     super(context, layoutTemplateResId, characters, columns, horizontalPadding);
/*     */   }
/*     */ 
/*     */   protected Keyboard.Key createKeyFromXml(Resources res, Keyboard.Row parent, int x, int y, XmlResourceParser parser)
/*     */   {
/*  43 */     Keyboard.Key key = new Code(res, parent, x, y, parser);
/*  44 */     if (key.codes[0] == 10)
/*  45 */       this.A = key;
/*  46 */     else if (key.codes[0] == 32) {
/*  47 */       this.B = key;
/*     */     }
/*  49 */     return key;
/*     */   }
/*     */ 
/*     */   void This(Resources res, int options)
/*     */   {
/*  57 */     if (this.A == null) {
/*  58 */       return;
/*     */     }
/*     */ 
/*  61 */     switch (options & 0x400000FF)
/*     */     {
/*     */     case 2:
/*  63 */       this.A.iconPreview = null;
/*  64 */       this.A.icon = null;
/*     */ 
/*  66 */       break;
/*     */     case 5:
/*  68 */       this.A.iconPreview = null;
/*  69 */       this.A.icon = null;
/*     */ 
/*  71 */       break;
/*     */     case 3:
/*  74 */       this.A.label = null;
/*  75 */       break;
/*     */     case 4:
/*  77 */       this.A.iconPreview = null;
/*  78 */       this.A.icon = null;
/*     */ 
/*  80 */       break;
/*     */     default:
/*  83 */       this.A.label = null;
/*     */     }
/*     */   }
/*     */ 
/*     */   void This(Drawable icon)
/*     */   {
/*  89 */     if (this.B != null)
/*  90 */       this.B.icon = icon;
/*     */   }
/*     */ 
/*     */   static class Code extends Keyboard.Key
/*     */   {
/*     */     public Code(Resources res, Keyboard.Row parent, int x, int y, XmlResourceParser parser)
/*     */     {
/*  97 */       super(res, parent, x, y, parser);
/*     */     }
/*     */ 
/*     */     public boolean isInside(int x, int y)
/*     */     {
/* 106 */       return super.isInside(x, (this.codes[0] == -3) ? y - 10 : y);
/*     */     }
/*     */   }
/*     */ }

/* Location:           I:\myapk\TelLib\
 * Qualified Name:     irdc.ex03_15.LatinKeyboard
 * JD-Core Version:    0.5.4
 */